import { IsNumber, IsString, IsNotEmpty } from 'class-validator'

export class UploadChunkDto {
  @IsString()
  @IsNotEmpty()
  fileHash: string

  @IsNumber()
  @IsNotEmpty()
  chunkIndex: number

  @IsString()
  @IsNotEmpty()
  chunkHash: string

  @IsString()
  @IsNotEmpty()
  filename: string

  @IsNumber()
  @IsNotEmpty()
  totalChunks: number
}
